package com.ad.pet.app.account.order.fragment;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.account.order.PayCompleted;
import com.ad.pet.models.remote.account.order.PayMethodAll;
import com.ad.pet.models.remote.account.order.PayUrl;
import com.ad.pet.models.remote.account.order.SignCheck;
import com.ad.pet.models.result.ResultBean;

/**
 * Created by SEELE on 2019/2/20.
 */

public interface PacketInfoContract {

    interface Presenter extends BasePresenter<PacketInfoContract.View> {
            void onConfirmRecive(String orderId ,String productId,String orderProductId);
            void onComment(String order_id, String product_id,String order_product_id, String rating, String content, String image);
            void createOrder(String type,String amount,String pm_id,String order_sn,String uid,String pay_sign);
            void getPayWays(String order_sn);
            void addPayAdvice(String order_sn,String advice);
            void payCompleted(String order_sn);
            void payCompletedOpen(String orderSn);

    }

    interface View extends AbsView {
            void onConfirmReciveSuccess(ResultBean resultBean);
            void onCommentSuccess(ResultBean resultBean);
            void createOrderSuccess(PayUrl payUrl);
            void getPayWaysSuccess(PayMethodAll payMethodAll);
            void addPayAdvice();
            void payCompletedSuccess(PayCompleted payCompleted);
            void payCompletedOpenSuccess(SignCheck signCheck);

    }
}
